package nsn.message.aggragtor.feeds;

import nsn.message.aggregator.model.Entry;

import com.sun.syndication.feed.synd.SyndEntry;

/**
 * 
 * 
 * @author Lukasz Nowak
 * @since 10-03-2011
 * 
 */
public class EntryFeed extends Entry {

	/**
     * 
     */
	private static final long serialVersionUID = 4640486189315559875L;

	private final SyndEntry _syndEntry;

	/**
	 * 
	 * 
	 * @param source
	 * @param syndEntry
	 */
	protected EntryFeed(final SourceFeed source, final SyndEntry syndEntry) {
		_syndEntry = syndEntry;
		setSource(source);
		setTitle(_syndEntry.getTitle());
		setContent(_syndEntry.getDescription().getValue());
		setAuthor(_syndEntry.getAuthor());
		setPublishedDate(_syndEntry.getPublishedDate());
	}

	/**
	 * 
	 * @return SyndEntry
	 */
	public SyndEntry getAdaptee() {
		return _syndEntry;
	}	

}
